package com.cloud.mybatisplus.controller;


import com.cloud.mybatisplus.entity.EricUser;
import com.cloud.mybatisplus.service.EricUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author
 * @date 2023-08-01 15:43
 */
@RestController
@RequestMapping("/mybatisplus")
public class EricUserController {
    @Autowired
    private EricUserService userService;

    @GetMapping("/user")
    public List<EricUser> getEricUserList() {
        List<EricUser> list = userService.list(null);
        return list;
    }
}

